import threading
from model.car_number import CarNumber
from model.result import Result
from model.park_platform import ParkPlatform
import spider_config


class ParkSpider:
    def __init__(self) -> None:
        self.__proxy = None
        self.__account = None

    def getTimeout(self):
        return spider_config.timeout

    def getProxy(self):
        return self.__proxy

    def setProxy(self, proxy):
        self.__proxy = proxy

    def getAccount(self):
        return self.__account

    def setAccount(self, account):
        self.__account = account

    def platform(self) -> ParkPlatform:
        pass

    def query(self, carNumber: CarNumber) -> Result:
        pass
